/**
 * Models
 */
var mongoose = require('mongoose');
var config = require('../config');

// mongoose.connect(config.db, function (err) {
//   if (err) {
//     console.error('connect to %s error: ', config.db, err.message);
//     process.exit(1);
//   }
// });


// models
require('./user');
require('./fileStorage');
require('./topic');
require('./notification');
require('./notificationReply');
require('./reply');
require('./topic_collect');
require('./notification_collect');
require('./notificationReply');
require('./NotificationMessage');
require('./message');
require('./schedule');

exports.User = mongoose.model('User');
exports.FileStorage = mongoose.model('FileStorage');
exports.Topic = mongoose.model('Topic');
exports.Notification = mongoose.model('Notification');
exports.NotificationMessage = mongoose.model('NotificationMessage');
exports.NotificationReply = mongoose.model('NotificationReply');
exports.Reply = mongoose.model('Reply');
exports.TopicCollect = mongoose.model('TopicCollect');
exports.NotificationCollect = mongoose.model('NotificationCollect');
exports.Message = mongoose.model('Message');
exports.Schedule = mongoose.model('Schedule');
